<?php

function getFormUpload() {
    ?>


    <div id="upload_form" class="hiddenupload">

    <?php echo form_open_multipart('admin/admin/upload/', array('id' => 'uploadform')); ?>



        <p><?php echo form_label('Select photo', 'userfile', 'id="userfile"'); ?>

    <?php echo form_upload('userfile', '', 'id="userfile"'); ?></p>



        <p><?php echo form_label('Title', 'title'); ?>

    <?php echo form_input('title'); ?></p>



        <p><?php echo form_label('Caption', 'caption'); ?>

    <?php echo form_input('caption'); ?></p>



    <?php // echo form_hidden('post_id', $post_id); ?>



        <div id="buttons">

            <p><?php echo form_submit('go', 'Upload', 'class="blue"'); ?></p>

    <?php echo anchor('', 'Cancel', 'class="cancel button float_right orange"'); ?>

        </div>

    <?php echo form_close(); ?>

        <div id="loading" class="hidden"></div>

        <div id="status_output"></div>

    </div>

    <div id="overlay" class="overlay"></div>




<?php } ?>

